package com.mvc.business.model;

import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.mvc.framework.model.CommonAuditableEntity;

@Entity(name = "B_QUOTATION_EXTRA_ITEM")
public class QuotationExtraItem extends CommonAuditableEntity {

	public static final int	TYPE_EXTRA_COST	 = 1;
	public static final int	TYPE_SAVING_COST	= 2;

	@NotNull
	private Integer	        quotationId;
	@NotNull
	@Length(max = 128)
	private String	        description;
	@NotNull
	private Double	        total;
	@NotNull
	private Integer	        type;

	public Integer getQuotationId() {
		return quotationId;
	}

	public void setQuotationId(Integer quotationId) {
		this.quotationId = quotationId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

}
